#!/bin/bash

# 定义当前目录变量
current_dir="$(dirname "$0")"
killall -9 python
# 使用 nohup 在后台执行 Python 脚本，并将输出重定向到文件
nohup python "$current_dir/更新最快的服务器.py" > "$current_dir/log/更新最快的服务器.log" 2>&1 &
nohup python "$current_dir/检查是否是交易日.py" > "$current_dir/log/检查是否是交易日.log" 2>&1 &
nohup python "$current_dir/获取通达信实时数据.py" > "$current_dir/log/获取通达信实时数据.log" 2>&1 &
nohup python "$current_dir/整理通达信实时数据.py" > "$current_dir/log/整理通达信实时数据.log" 2>&1 &
nohup python "$current_dir/处理短线精灵数据.py" > "$current_dir/log/处理短线精灵数据.log" 2>&1 &
nohup python "$current_dir/获取同花顺概念实时行情.py" > "$current_dir/log/获取同花顺概念实时行情.log" 2>&1 &
#nohup python "$current_dir/获取同花顺行业实时行情.py" > "$current_dir/log/获取同花顺行业实时行情.log" 2>&1 &
#nohup python "$current_dir/获取同花顺指数数据.py" > "$current_dir/log/获取同花顺指数数据.log" 2>&1 &
#nohup mypython "$current_dir/update_code.py" > "$current_dir/log/update_code.log" 2>&1 &


ps -ef|grep python

